Skip to content

Conversation

@jrenaat
Copy link
Member

@jrenaat jrenaat commented Apr 3, 2025

with the one for normal entity multiloading


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


…s with the one for normal entity multiloading

Signed-off-by: Jan Schatteman <[email protected]>
@hibernate-github-bot
Copy link

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [3200800]

› This message was automatically generated.

* by their simple (basic/embedded) type.
*/
<K> List<E> multiLoad(K[] naturalIds, MultiNaturalIdLoadOptions options, SharedSessionContractImplementor session);
<K> List<E> multiLoad(K[] naturalIds, MultiNaturalIdLoadOptions options, EventSource eventSource);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I still allowed to do this at this point in time @gavinking @sebersole @yrodiere ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would prevent that method being called from a StatelessSession.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would prevent that method being called from a StatelessSession.

fair point i guess?
This doesn't seem to be a concern for the normal multiple id loading though?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrenaat if you look in StatelessSessionImpl, you'll see how I had to hack in multiple id loading with a criteria query, I guess precisely because MultiIdEntityLoader.load() requires an EventSource. We should fix that!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrenaat if you look in StatelessSessionImpl, you'll see how I had to hack in multiple id loading with a criteria query, I guess precisely because MultiIdEntityLoader.load() requires an EventSource. We should fix that!

Well, we certainly can if, as I asked, we can still modify the signature of the implied methods at this late point in the release path of v7 ... ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #9959.

@jrenaat
Copy link
Member Author

jrenaat commented Apr 4, 2025

Closing this as it's superseded by #9959

@jrenaat jrenaat closed this Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants